package com.xiaoxi.dragsortlistview;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.xiaoxi.dragsortlistview.countdown.CountdownListActivity;
import com.xiaoxi.dragsortlistview.demo5.ListChoiceActivity;
import com.xiaoxi.dragsortlistview.dslv.Launcher;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn_sort_list).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, Launcher.class));
            }
        });
        findViewById(R.id.btn_countdown_list).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, CountdownListActivity.class));
            }
        });
        findViewById(R.id.btn_demo5_list).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, ListChoiceActivity.class));
            }
        });
        //
    }
}
